<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<meta name="keywords" content=""/>
<meta name="description" content="">
<meta name="author" content=""/>
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<title>11我的评论</title>
<link rel="stylesheet" type="text/css" href="/assets/css/public.css">
<link rel="stylesheet" type="text/css" href="/assets/css/shenjiahuang.css">
<script src="/assets/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
	function deleteCommoent(id){
		if(confirm("确定删除该评论？")){
			var url = "/mycomment/delete";
			$.post(
				url,
				{Id:id},
				function(data){
					window.location.reload();
				}
			);
		}
		
	}

</script>
</head>

<body id="shenjiahuang4">
<header id="jiahuang31" class="clearfix">
 <a href="/user/login"><span class="jia31"></span></a>我的评论
</header>

<article  id="jiahuang32" class="clearfix">
<c:forEach var="m" items="${mcList }">
 <div id="shen32" class="clearfix" >
   <div class="jia32">
     <p class="huang31">我评论了<a class="tian31" href="#">${m.tittle }</a></p>
     <p class="huang32"><span class="shu31"></span>
   ${m.commentContent }</p>
   </div>
   <div class="jia33">
    <p class="huang33">${m.createTime }</p>
    <nav class="huang34"><a class="shu32" href="javascript:;" onclick="deleteCommoent(${m.id})">删除评论</a>
     <a class="shu33" href="/article/detail/${m.articleid }">查看详情</a>
     </nav>
   </div>
 </div>
 </c:forEach>
</article>
</body>
</html>